FROM nginx:1.12.2
ARG APP_NAME
ARG APP_VERSION
ENV APP_PORT=80
ENV BUILD_NAME=${APP_NAME}
ENV BUILD_VERSION=${APP_VERSION}
ENV BUILD_PORT=${APP_PORT}
RUN rm -rf /usr/share/nginx/html \
    && mkdir /usr/share/nginx/html \
    && rm -rf /etc/nginx/conf.d/default.conf
COPY ./dist/ /usr/share/nginx/html
COPY web.conf /etc/nginx/conf.d/web.conf
EXPOSE ${APP_PORT}
